<template>
  <a-modal title="企业基本信息" :visible="visible" :footer="null" @cancel="handleCancel" :width="1600">
    <a-table
      ref="table"
      size="middle"
      class="antableClass"
      rowKey="id"
      :columns="columns"
      :dataSource="dataSource"
      :pagination="ipagination"
      :loading="loading"
      @change="handleTableChange"
    >
      <template slot="title"  slot-scope="currentPageData"><span class="table_heard">三级及以下企业基本情况表</span></template>
    </a-table>
  </a-modal>
</template>

<script>
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import columns from './columnsDetails'
export default {
  name: 'EnterprisesThree',
  mixins: [JeecgListMixin],
  data() {
    return {
      disableMixinCreated: true,
      queryParam: {
        unitId: '',
        yearNum: '',
        type:''
      },
      visible: false,
      columns: columns(),
      dataSource: [],
      url:{
        list:'/sjmx/queryQyjbqkXsXq'
      }
    }
  },
  created(){
     console.log(1)
  },
  methods: {
    edit(record,type,queryParam) {
      console.log(record)
      this.queryParam.type=type|| '';
      this.queryParam = Object.assign({},this.queryParam,queryParam)
       this.loadData(1);
      this.visible = true
    },
    handleCancel() {
      this.visible = false
    },
  },
}
</script>

<style lang="less" scoped>
@import '~@assets/less/tableTheme.less';
.ant-table-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
.table_heard{
  font-size: 17px;
  font-weight: 700;
}

</style>